package com.sdppf.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.sdppf.domain.Role;
import com.sdppf.service.RoleService;

public class RoleAction extends ActionSupport {
	private static final long serialVersionUID = 1L;

	private RoleService roleService;
	private List<Role> roles;

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public RoleService getRoleService() {
		return roleService;
	}

	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}

	public String queryAll() throws Exception {
		this.roles = this.roleService.queryRoles();
		return "success";
	}

	public String saveRole() throws Exception {
		return null;
	}

	public String updateRole() throws Exception {
		return null;
	}

	public String deleteRole() throws Exception {
		return null;
	}
}
